function getQuery(name) {
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
	var r = window.location.search.substr(1).match(reg);
	return r != null ? r[2] : ""
}
function share() {
	window.open("http://test.com/free/connect/share.php?url=" + getQuery("url") + "&appkey=" + getQuery("appkey"), "_blank", "width=615,height=505");
}
document.write('<div class="change_btn">'
				+	'<div class="type">'
				+		'<span id="count_p" class="number">'
				+			'<em id="count">...</em>'
				+			'<img src="http://test.com/free/static/css/share/transparent.gif" class="arrow" alt="" />'
				+		'</span>'
				+		'<p>'
				+			'<a onmouseout="hide_description();" onmousemove="show_description();" onclick="share();" href="javascript:;" hidefocus="true">'
				+				'<img src="http://test.com/free/static/css/share/transparent.gif" class="icon" alt="" />'
				+			'</a>'
				+		'</p>'
				+	'</div>'
				+'</div>');